﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace main_fx
{
    public partial class projetor : Form
    {

        notasclasse nt = new notasclasse();

        private bool ALT_F4 = false;

        public string nomes, fotos, grupos, notas, tempos;

        public string Propriedade { get; set; }

        public void atualiza()
        {

            if (!this.Propriedade.Equals(""))
            {
                LNome.Text = "USUÁRIO: " + this.Propriedade;
            }


        }

        
         

        public projetor()
        {
            InitializeComponent();
        }

        private void projetor_Load(object sender, EventArgs e)
        {
            
            
            
            foreach (Control control in this.Controls)
            
            {
                if (control is MdiClient)
                {
                    control.BackColor = Color.Black;
                    
                    break;
                }
            }
        }

        private void projetor_MaximumSizeChanged(object sender, EventArgs e)
        {
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
        }

        private void projetor_KeyPress(object sender, KeyPressEventArgs e)
        {
            
        }

        private void projetor_KeyDown(object sender, KeyEventArgs e)
        {
            
            


            if ((Control.ModifierKeys == Keys.Control) &&   (e.KeyCode == Keys.F))
            {
                ALT_F4 = (e.KeyCode.Equals(Keys.F4) && e.Alt == true);

                if (this.WindowState == FormWindowState.Maximized)
                {

                    this.WindowState = FormWindowState.Normal;
                    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
                }
                else
                {
                    this.WindowState = FormWindowState.Maximized;
                    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                }
            }

            
        }

        public void fechar()
        {
            this.Close();
            this.Dispose();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            projetor tela = new projetor();
            tela.ShowDialog();
        }

        private void button1_Click_1(object sender, EventArgs e)
        {

        }

        private void projetor_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            
        }

        private void cronometro_user_control1_Load(object sender, EventArgs e)
        {
            
            //cronometro_user_control1.timer1_Tick(sender, e);
        }

        private void button1_KeyDown(object sender, KeyEventArgs e)
        {

        }

        private void button1_Click_2(object sender, EventArgs e)
        {
            
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            

            //LNome.Text = nt.nome;
        }

        private void projetor_FormClosed(object sender, FormClosedEventArgs e)
        {
            
        }

       public void recebe()
       {
           MessageBox.Show("inicio");
       }

       private void lTempo_Click(object sender, EventArgs e)
       {

       }
    }
}
